<!DOCTYPE html>
<html>
<head>
    <title>VIEW</title>
    <#include "/header.html">
</head>
<body>
<div id="webpage" v-cloak>
    <div v-show="appearance.showList">
        <div v-show="appearance.showControllBar" class="grid-btn">
            <span v-show="appearance.showSearchForm">
                 <el-form :inline="true" :model="q" class="demo-form-inline" size="small">
                    <el-form-item label="昵称">
                        <el-input v-model="q.nickname" placeholder="请输入" clearable></el-input>
                    </el-form-item>
                    <el-form-item label="uid">
                        <el-input v-model="q.user_id" placeholder="请输入" clearable></el-input>
                    </el-form-item>
                    <el-form-item label="状态">
                        <el-select v-model="q.is_verify_idcard">
                        <el-option
                                v-for="item in options"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                        </el-option>
                      </el-select>
                    </el-form-item>
                    <el-button type="primary" @click="query" size="small" icon="el-icon-search">查询</el-button>
               </el-form>
            </span>

            <#if shiro.hasPermission("dataview:viewuserfullinfo:save")>
                <el-button type="primary" @click="add" size="small" icon="el-icon-search">新增</el-button>
            </#if>
        <#if shiro.hasPermission("dataview:viewuserfullinfo:update")>
        <a class="btn btn-primary" @click="update(null,$event)"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
        </#if>
    <#if shiro.hasPermission("dataview:viewuserfullinfo:delete")>
    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
    </#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!appearance.showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>

</div>
</div>
<script>
    set_grid_column_formatter('dataview/viewuserfullinfo/isVerifyIdcard',function (cellValue , options , rowData) {
        if(parseInt(cellValue)==0){
            return str_format('<i class="label label-success">未认证</i>');
        }
        return str_format('<i class="label label-warning">已认证</i>');
    })
</script>
<script src="${request.contextPath}/statics/js/modules/dataview/viewuserfullinfo.js?_${.now?long}"></script>
</body>
</html>